Xbasic

MONTH_END Function

Syntax

Last_Day as D = month_end(D date )

Arguments

date

A date constant or variable.

Description

Computes the date on which a month ends for any given date.

Discussion

MONTH_END() returns the date of the last day of the month in which date occurs.

Example

? month_end({7/12/2002})
= {7/31/2002}

See Also